package io.renren.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CreateChatRoomDTO {

    private String groupId;

    /**
     * vin码
     */
    @JsonProperty(value = "vinCode")
    @JSONField(name = "vinCode")
    @NotBlank(message = "参数错误")
    private String vinCode;

    /**
     * 群主的userID
     */
    @JsonProperty(value = "ownerAccount")
    @JSONField(name = "ownerAccount")
    private String ownerAccount;

    /**
     * 群名称
     */
    @JsonProperty(value = "name")
    @JSONField(name = "name")
    @NotBlank(message = "参数错误")
    private String name;
}
